package com.fastloan.mgt.application.contract.service.impl.contractmode;

import com.fastloan.mgt.application.base.model.Application;
import com.fastloan.mgt.application.base.service.ApplicationService;
import com.fastloan.mgt.application.contract.service.ApplicationContractService;
import com.fastloan.mgt.product.basics.model.Product;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * 签约模式
 *
 * @author yanwe
 * createTime 2018-01-2018/1/7 13:10
 */
public abstract class ContractMode {

    @Autowired
    protected ApplicationService applicationService;

    @Autowired
    protected ApplicationContractService applicationContractService;

    /**
     * 签约
     *
     * @param application 进件
     * @param product 产品
     */
    public abstract void contract(Application application, Product product);

    /**
     * 签约类型
     */
    public abstract Integer contractType();
}
